<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('dynamic/index')}">动态列表</a></li>
			<li class="active"><a>动态回复</a></li>
		</ul>
        <form method="post" class="form-horizontal js-ajax-form margin-top-20">
            <div class="form-group">
                <label for="input-s_name" class="col-sm-2 control-label">发布人</label>
                <div class="col-md-6 col-sm-10">
                    <input type="text" class="form-control" id="input-s_name" value="{$circle.s_name}" disabled>
                </div>
            </div>
                <div class="form-group">
                    <label for="input-c_createtime" class="col-sm-2 control-label">发布时间</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" id="input-c_createtime" value="{$circle.c_createtime}" disabled>
                    </div>
                </div>
            <div class="form-group">
                <label for="input-c_content" class="col-sm-2 control-label">内容</label>
                <div class="col-md-6 col-sm-10">
                    <textarea class="form-control" id="input-c_content"  name="s_record" disabled>{$circle.c_content}</textarea>
                </div>
            </div>
            <if condition="$circle['c_images']">
                <div class="form-group">
                    <label for="input-c_image" class="col-sm-2 control-label">图片</label>
                    <div class="col-md-6 col-sm-10">
                        <php>
                            $images = explode(',',$circle['c_images']);
                            foreach($images as $img){
                                echo '  <a href=javascript:parent.imagePreviewDialog("'.$img.'");>
                                        <img src='.$img.' width="10.7531%" id="input-c_image" style="cursor: pointer;"/>
                                        </a>';
                            }
                        </php>
                    </div>
                </div>
            </if>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
                    <th>发帖人</th>
					<th>评论内容</th>
                    <th>子评论</th>
					<th>发布时间</th>
					<th width="50">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="comment" item="vo">
				<tr>
					<td>{$vo.id}</td>
                    <td>{$vo.u_nickname}</td>
                    <td>{$vo.c_content}</td>
                    <td><a href="{:url('dynamic/child',array('cid'=>$circle['id'],'parent'=>$vo['id']))}">{$vo.c_comment}</a></td>
					<td>{$vo.c_createtime}</td>
					<td>
						<if condition="$vo['c_status'] lt 30">
							<a href="{:url('dynamic/disabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要屏蔽此动态吗？">屏蔽</a>
							<else />
							<a href="{:url('dynamic/disabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要显示此动态吗？"><b style="color: red">显示</b></a>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>